home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / f2c_5_92 Folder / f2c_5_92 / f2c / sysdep.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-26  |  2.8 KB  |  107 lines  |  [TEXT/ttxt]

  1. /****************************************************************
  2. Copyright 1990, 1991 by AT&T Bell Laboratories, Bellcore.
  3.  
  4. Permission to use, copy, modify, and distribute this software
  5. and its documentation for any purpose and without fee is hereby
  6. granted, provided that the above copyright notice appear in all
  7. copies and that both that the copyright notice and this
  8. permission notice and warranty disclaimer appear in supporting
  9. documentation, and that the names of AT&T Bell Laboratories or
  10. Bellcore or any of their entities not be used in advertising or
  11. publicity pertaining to distribution of the software without
  12. specific, written prior permission.
  13.  
  14. AT&T and Bellcore disclaim all warranties with regard to this
  15. software, including all implied warranties of merchantability
  16. and fitness.  In no event shall AT&T or Bellcore be liable for
  17. any special, indirect or consequential damages or any damages
  18. whatsoever resulting from loss of use, data or profits, whether
  19. in an action of contract, negligence or other tortious action,
  20. arising out of or in connection with the use or performance of
  21. this software.
  22. ****************************************************************/
  23.  
  24. /* This file is included at the start of defs.h; this file
  25.  * is an initial attempt to gather in one place some declarations
  26.  * that may need to be tweaked on some systems.
  27.  */
  28.  
  29. #ifdef THINK_C
  30. #define __STDC__
  31. #endif
  32. #ifdef __STDC__
  33. #ifndef ANSI_Libraries
  34. #define ANSI_Libraries
  35. #endif
  36. #ifndef ANSI_Prototypes
  37. #define ANSI_Prototypes
  38. #endif
  39. #endif
  40.  
  41. #ifdef __BORLANDC__
  42. #define MSDOS
  43. extern int ind_printf(), nice_printf();
  44. #endif
  45.  
  46. #ifdef __ZTC__    /* Zortech */
  47. #define MSDOS
  48. extern int ind_printf(...), nice_printf(...);
  49. #endif
  50.  
  51. #ifdef MSDOS
  52. #define ANSI_Libraries
  53. #define ANSI_Prototypes
  54. #define LONG_CAST (long)
  55. #else
  56. #define LONG_CAST
  57. #endif
  58.  
  59. #include <stdio.h>
  60.  
  61. #ifdef ANSI_Libraries
  62. #include <stddef.h>
  63. #include <stdlib.h>
  64. #else
  65. char *calloc(), *malloc(), *memcpy(), *memset(), *realloc();
  66. #ifndef THINK_C
  67. typedef int size_t;
  68. #endif
  69. #ifdef ANSI_Prototypes
  70. extern double atof(const char *);
  71. #else
  72. extern double atof();
  73. #endif
  74. #endif
  75.  
  76. #ifdef ANSI_Prototypes
  77. extern char *gmem(int, int);
  78. extern char *mem(int, int);
  79. extern char *Alloc(int);
  80. extern int* ckalloc(int);
  81. #else
  82. extern char *Alloc(), *gmem(), *mem();
  83. int *ckalloc();
  84. #endif
  85.  
  86. /* On systems like VMS where fopen might otherwise create
  87.  * multiple versions of intermediate files, you may wish to
  88.  * #define scrub(x) unlink(x)
  89.  */
  90. #ifndef scrub
  91. #define scrub(x) /* do nothing */
  92. #endif
  93.  
  94. /* On systems that severely limit the total size of statically
  95.  * allocated arrays, you may need to change the following to
  96.  *    extern char **chr_fmt, *escapes, **str_fmt;
  97.  * and to modify sysdep.c appropriately
  98.  */
  99. extern char *chr_fmt[], escapes[], *str_fmt[];
  100.  
  101. #include <string.h>
  102.  
  103. #include "ctype.h"
  104.  
  105. #define Table_size 256
  106. /* Table_size should be 1 << (bits/byte) */
  107.